#!/usr/bin/env python
# -*- encoding: utf-8 -*-
# Project: spd-sxmcc
"""
@author: lyndon
@time Created on 2018/11/2 15:44
@desc
"""
from apscheduler.schedulers.blocking import BlockingScheduler
import time

scheduler = BlockingScheduler()

def job1():
    print("%s:执行任务"%time.asctime())

scheduler.add_job(job1,'interval', seconds=3)

scheduler.start()


